package cn.niit.pm.dao;

import cn.niit.pm.entity.Recruit;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


/**
 * 就是数据库操作的 DAO 接口，即为原来的 RecruitDao 接口类
 * @author xiaomi*/


@Mapper
public interface RecruitMapper {

    /**
     * 查询，并返回招聘列表
     * @param recruit
     * @return*/


    List<Recruit> selectListByRecruit(Recruit recruit);

    /**
     * 添加招聘信息
     * @param recruit
     * @return*/


    int insertRecruit(Recruit recruit);

    /**
     * 根据招聘Id查询招聘信息
     * @param recruitId
     * @return*/


    Recruit selectByrecruitId(Integer recruitId);

    /**
     * 更新招聘信息
     * @param recruit
     * @return*/


    int updateRecruit(Recruit recruit);

    /**
     * 删除招聘计划
     * @param recruitId
     * @return*/


    int deleteByRecruitId(Integer recruitId);
}
